//
//  YZDWAPI.h
//  VET
//
//  Created by Lam BG on 2018/7/12.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import "YZBaseAPI.h"
#import "YZStatementHeader.h"

@interface YZWorkbenchAPI : YZBaseAPI

#pragma mark - 工作台

+ (RACSignal*)index;

#pragma mark - 每日待办

/** 获取相关 item 下的任务列表 */
+ (instancetype)initWithItemType:(DWItemType)itemType;

/** 标记完成任务 */
+ (RACSignal*)markDoneDailyWorkAPI:(NSString*)taskID;

/** 标记未成任务 */
+ (RACSignal*)markUndoDailyWorkAPI:(NSString*)taskID;

/** 删除任务 */
+ (RACSignal*)deleteDailyWorkAPI:(NSString*)taskID;

#pragma mark - 新建任务

/** 新建任务 */
+ (RACSignal*)newDailyWorkAPI:(NSMutableDictionary*)params;
/** 更新任务 */
+ (RACSignal*)updateDailyWorkAPI:(NSString*)taskID params:(NSMutableDictionary*)params;

#pragma mark - 猪只

/** 获取猪只信息 */
+ (RACSignal*)getSwineInfoAPI:(NSString*)swineHerdId;

/** 新建猪只 */
+ (RACSignal*)newSwineAPI:(NSMutableDictionary*)params;

/** 删除猪只 */
+ (RACSignal*)deleteSwineAPI:(NSString*)swineHerdId;

#pragma mark -

/** 猪只 新增治疗 */
+ (RACSignal*)treatSwineAPI:(NSMutableDictionary*)params;

/** 猪只 删除治疗 */
+ (RACSignal*)deleteTreatSwineAPI:(NSString*)path;

#pragma mark - 猪群

/** 获取猪群信息 */
+ (RACSignal*)getSwineryInfoAPI:(NSString*)swineHerdId;

/** 新建猪群 */
+ (RACSignal*)newSwineryAPI:(NSMutableDictionary*)params;

/** 更新猪群 */
+ (RACSignal*)updateSwineryAPI:(NSString*)swineHerdId params:(NSMutableDictionary*)params;

/** 删除猪群 */
+ (RACSignal*)deleteSwineryAPI:(NSString*)swineHerdId;

/** 结批猪群 */
+ (RACSignal*)FinishedSwineryAPI:(NSString*)swineHerdId params:(NSMutableDictionary*)params;

/** 转入转出猪群 */
+ (RACSignal*)transferSwineryAPI:(NSString*)swineHerdId params:(NSMutableDictionary*)params;

#pragma mark - 死淘

/** 死淘登记 */
+ (RACSignal*)deadSignAPIWithParams:(NSMutableDictionary*)params;

/** 死淘删除 */
+ (RACSignal*)deleteDeadSignAPIWithParams:(NSString*)dieOutId;

#pragma mark - 免疫

/** 添加免疫 */
+ (RACSignal*)vaccinationAPIWithParams:(NSMutableDictionary*)params;

/** 获取猪群免疫详情 */
+ (RACSignal*)vaccinationImmuneSwineryAPIWithParams:(NSString*)ids;

/** 获取猪只免疫详情 */
+ (RACSignal*)vaccinationImmuneSwineAPIWithParams:(NSString*)ids;

/** 删除免疫 */
+ (RACSignal*)deleteVaccinationAPIWithParams:(NSString*)vaccinationObjectId;

@end




#define kAPIIndex       @"/api/index"

#define kAPITask        @"/api/task"
#define kAPITaskStataus @"/api/task/task_status"

#define kAPISwine             @"/api/swine"
#define kAPISwinery           @"/api/swinery"
#define kAPITreatmentSwine    @"/api/treatment"
#define kAPIFinishedSwinery   @"/api/swinery/finished"
#define kAPITansferSwinery    @"/api/swinery/transfer"

#define kAPIDieOut      @"/api/dieout"

#define kAPIVaccination @"/api/vaccination"




